|
|
|
|
<ParallelTask variable>.RequestCancellation (Function) In french: <Variable TâcheParallèle>.DemandeAnnulation Requests the cancellation of a parallel task.
// Triggers the execution of a task t is ParallelTask = Proc.Execute() ... // Cancels the execution of the task t.RequestCancellation() Syntax
Requesting the cancellation of a parallel task Hide the details
<Task>.RequestCancellation()
<Task>: ParallelTask variable Name of the ParallelTask variable to be used. Remarks - A cancellation request is transmitted to the task. The code of the task must manage the cancellation request via the following syntax:
- The call to <ParallelTask variable>.RequestCancellation is non-blocking. The task is considered canceled when the function is called.
- The task is flagged as ptsCancellationRequested. Any call to the ReturnedValue property will trigger a fatal error.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|